package com.rankeiot.platform.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.sagacity.sqltoy.config.annotation.Column;
import org.sagacity.sqltoy.config.annotation.Entity;
import org.sagacity.sqltoy.config.annotation.Id;

import java.io.Serializable;
import java.sql.Types;
import java.util.Date;

/**
 * 用户操作日志
 * @author desire
 */
@Schema(description = "用户操作日志")
@Data
@Entity(tableName = "t_operation_log")
public class OperationLog implements Serializable {
    @Id
    @Column(name = "id",type = Types.BIGINT)
    private Long id;
    @Column(name = "module",type = Types.VARCHAR)
    private String module;
    @Column(name = "operate",type = Types.VARCHAR)
    private String operate;
    @Column(name = "operate_type",type = Types.VARCHAR)
    private String operateType;
    @Column(name = "user_name",type = Types.VARCHAR)
    private String user;
    @Column(name = "user_type",type = Types.VARCHAR)
    private String userType;
    @Column(name = "ip",type = Types.VARCHAR)
    private String ip;
    @Column(name = "path",type = Types.VARCHAR)
    private String path;
    @Column(name = "query",type = Types.VARCHAR)
    private String query;
    @Column(name = "body",type = Types.CLOB)
    private String body;
    @Column(name = "status",type = Types.VARCHAR)
    private String status;
    @Column(name="create_time",type = Types.TIMESTAMP)
    private Date createTime;

}
